The basis for the ruling was that Congress appropriated the money without conditions, and Sessions tried to add conditions after the fact. This was held to be a violation of separation of powers. Nothing in the ruling prevents Congress from adding conditions to future appropriations.
Arizona