Elon Musk can keep giving away $1m to voters, judge rules – as lawyer admits winners aren’t chosen randomly