The last space shuttle flight rolled to a stop just before 6 a.m. on Thursday, closing an era in the nation’s space program.