U.S. President Donald Trump said magnets and "any necessary rare earths" will be supplied up front by China as part of a trade agreement.