A Philadelphia judge will hear the city prosecutor’s bid to shut down Elon Musk’s one million dollars-a-day (£772,000) sweepstakes in battleground states on Thursday.