A California ticket won the $1.22 billion Mega Millions jackpot, becoming the fifth-largest in the game's history.