WASHINGTON — Congressional Republicans, under intense pressure to respond to this weekend’s massacres, are coalescing around legislation to help law enforcement take guns from those who pose an imminent danger — a measure that, if signed into law, would be the most significant gun control legislation enacted in 20 years.