Republicans tried to use the Trump administration’s attack on Iran to pressure Democrats to relent on funding for the shutdown Department of Homeland Security.