An attempt to block plans by Croydon Council to license all private sector landlords in the borough has failed at the High Court.