Judge rules federal anti-sanctuary city law unconstitutional