Astronaut Sally Ride brought women and the LGBTQ+ community to the final frontier 40 years ago