It's like that time Admiral Kirk broke all those Starfleet rules and stuff to go rescue Spock's captcha or whatever. Then, on the way back, he saved Earth by going back in time and bringing the 7th Heaven mom and some whales back for repopulation. The found him guilt and and bumped his rank but he still had a job and was reverred and all. It's just like that.