How many years did it take congress to proclaim the song as your national anthem?

It took 177 years for Congress to proclaim the song as our National Anthem