Major stock indexes ended sharply lower Thursday, a day after President Donald Trump signed a funding bill to end the longest federal shutdown in U.S. history, as technology shares dragged the Nasdaq.