With a 92-5 vote in the US Senate, former Justice Department lawyer Christopher Wray has been confirmed as the new FBI chief.