Over more than a decade at Mars, the orbiter revealed how the solar wind strips away the planet’s atmosphere — and why the world lost its water.