Elon Musk secretly funded a conservative political group in recent years, according to four people familiar with his donations, illustrating quiet financial support for right-wing causes even before the billionaire entrepreneur in July endorsed former President Donald Trump’s bid for re-election.