United States president Donald Trump has forced Defense Secretary James Mattis to leave his post early, appointing an acting successor to take over in the new year. General Mattis, 68, strongly hinted at policy differences with Mr. Trump when he resigned on Friday.