Government grants permission for new prison despite council rejecting plans