Trump, Ryan, pledge to work together, see end to rift in GOP