Global stock markets rose on Friday, with major Wall Street indices ending at all-time records, as investors shrugged off a looming shutdown of the US government.