Apple Inc. Chief Executive Officer Tim Cook said he criticized Donald Trump’s approach to trade with China in a recent White House meeting, while urging the president to address the legal status of immigrants known as Dreamers.