She can throw the wrench in the direction opposite to the spaceship. It's Newton's third law:
"To every action there is always opposed an equal reaction: or the mutual actions of two bodies upon each other are always equal, and directed to contrary parts."
Throwing the wrench she generates force to the wrench directed away from the spaceship. The same force is generated to her but in the opposite direction which is towards the spaceship.