Republican lawmakers have faced backlash at town halls and other events in their districts in recent days.