The decision came in response to a petition by attorneys general in 22 states and Washington, D.C., seeking to block the administration's efforts to freeze payments for grants and other programs.