Investors have taken comfort from data pointing to robust activity in the world's biggest economy, with Wall Street's main indices all closing higher on Friday.