The immigration agency had barred elected officials from the holding facilities. A federal judge this week said they must be given access.