While some of his advisers suggested that he would slip back into a more conventional Republican approach, Mr. Trump dropped hints in interviews, Twitter posts and other public comments that he intended to push his party away from its free-market, internationalist dogma on trade, foreign alliances, immigration, infrastructure spending and prescription drug access.