Nigeria adopted a new national anthem on Wednesday after lawmakers passed a law that replaced the current one with a version dropped nearly a half-century ago, sparking widespread criticism about how the law was hastily passed without much public input.