Marriott International Inc. ended 2020 with a loss of $267 million—its first annual loss since 2009—as the company absorbed the effects of the downturn in global travel during a pandemic that emptied most of its rooms last March and continues to sap demand.