Republican lawmakers are setting their sights on the judiciary following court rulings that have halted Trump's agenda.