The acting president has reshaped the Cabinet and security apparatus and released of dozens of political prisoners, moves welcomed by U.S. President Donald Trump.