A dozen state attorneys general sued the Department of Homeland Security in Rhode Island federal court on Monday, accusing it of holding emergency response funding hostage unless they help enforce federal immigration laws, despite a recent court order blocking the department’s attempts to condition funds on such assistance.