The military actions in Iran instantly divided Democrats and Republicans on Capitol Hill over the purpose and legality of the strikes.