Judge blocks Trump’s attempt to overhaul US elections