Trump officials have been accused of breaching national security, after Yemen attack plans were texted to a journalist.