A collective of 20 states said Wednesday that only Congress can change the terms of federal grants, telling a Rhode Island federal judge that the U.S. Department of Homeland Security’s softening of its stance on withholding funds to states that don’t cooperate with immigration enforcement cannot moot their suit against the government.