President Donald Trump said Chinese President Xi Jinping committed to the purchase during Trump's visit to Beijing