When the gas comes out the tail if the rocket it does not need to push against anything. It's not like a bird or jet that is moving air to push itself forward. A rocket is a chemical reaction that creates it's own gas. The gas moving in one direction pushes the rocket in the other. Equal and opposite.
RE: Do rockets work in Space?