Obama said Donald Trump and Ted Cruz have upset mainstream “establishment” Republicans with their insurgent campaigns.