BOSTON (AP) — More than two dozen states on Thursday sued the Trump administration for requiring them to comply with election and immigration conditions in order to receive billions of dollars in federal funding for disasters. The lawsuit, filed in Rhode Island and challenging Federal Emergency Management Agency and Department of Homeland Security policies, argued that the administration is requiring states to change their elections systems and help DHS with immigration enforcement. The conditions would also allow DHS to terminate grants at anytime and for any reason.“Once again, the Trump Administration is threatening to jeopardize public safety by unlawfully withholding billions in critical funding and once again, they won’t get away with it,” Rhode Island Attorney General Peter Neronha said. “This Administration is using the safety of Americans as collateral by attempting to bully the states into relinquishing their constitutional right to enact policies and laws that best serve their residents.”

The states argue putting conditions on congressionally appropriated funding violates the Administrative Procedure Act and the U.S. Constitution’s spending clause. A spokesperson for the Department of Homeland Security did not immediately respond to a request for comment.The lawsuit is one of scores that have challenged the Trump administration over its repeated effort to browbeat mostly Democrat states into complying with its priorities to get billions of dollars in federal funding. The strategy has been used on everything from education funding to domestic violence grants to highway funding.