The Trump administration unlawfully attached conditions to emergency service funding that required states to cooperate with the U.S. Department of Homeland Security’s immigration enforcement, a Rhode Island federal judge ruled Wednesday, agreeing with a multistate coalition that the conditions are unconstitutional, arbitrary and capricious.