A federal judge on Wednesday lifted a major obstacle to President Donald Trump’s executive order limiting mail voting, even as Democratic state officials filed a new court challenge with the midterm elections fast approaching.