Rockets hit a luxury hotel in Libya’s capital, Tripoli, early on Friday in an attack the internationally recognized government blamed on eastern forces trying to capture the city.