A federal judge blocked controversial changes to the United States postal service, saying they were "a politically motivated attack" that had slowed the nation's mail and likely would slow the delivery of ballots in the upcoming presidential election.