President Donald Trump signed a sweeping executive order to bring independent agencies under control of the White House, which will almost certainly be challenged in court.