A state agency late Wednesday cleared the way for completion of a complex deal to buy the privately owned Stanley Hotel, complete a long-languishing film center there, help boost Colorado’s profile as a player in the global entertainment industry and provide funding for the arts in the state’s public middle schools..