A federal judge has blocked two provisions of a Florida law that bans foreign nationals from registering voters and makes it a third-degree felony for those collecting voter information to retain a voter’s information for purposes unrelated to voter registration.