Trump made agreement with top military officials.