Original: The police quickly left the train and the hotel with the Kelly gang now trapped inside.
Simplified: The police quickly left the train and placed themselves around the hotel so that the Kelly gang was trapped inside.