They asked permission and it was granted. They had a 3 hour window to shut down the square and film the scene. Plenty of movies have filmed at Pennsylvania avenue.
The film is based on the Japanese light novel All You Need Is Kill by Hiroshi Sakurazaka.
That song is called "Love Me Again" by John Newman.