The US president and Tesla boss were formerly close allies before a dramatic falling out in recent weeks.