By nearly all accounts, pent-up frustrations boiled over as the president and the very lawmakers who have consistently opposed much of his agenda engaged in spirited and at times confrontational exchanges over immigration, spending, White House tactics and other issues during a private 75-minute session.