The lawsuit accused the Environmental Protection Agency of illegally revoking the money without congressional approval.