WASHINGTON—A federal judge blocked key portions of President Trump’s executive order that would create lists of people considered by federal agencies to be eligible to vote and place new restrictions ...