WASHINGTON — President Donald Trump’s abrupt reversal on his plan to help ships go through the Strait of Hormuz came after a key Gulf ally suspended the U.S. military’s ability to use its bases and airspace to carry out the operation, according to two U.S. officials.