U.S. stocks inched higher Monday, with technology shares stabilizing after slumping at the end of last week.