NEW YORK — Stocks rose on Monday, boosted by technology shares and by defense companies, which gained after the United States and Saudi Arabia signed a multibillion-dollar arms deal. Shares of General Dynamics, Raytheon and Lockheed Martin all hit record highs early on but ended off those levels, with gains …