After spending hundreds of millions of dollars to build an immersive “Star Wars”-themed hotel at Walt Disney World, Disney said on Thursday that, amid sweeping corporate cost-cutting, it would close the underperforming attraction in September, only about 18 months after it opened.