Justice Ruth Bader Ginsburg invoked Aaron Copland. The chief justice countered with Jimi Hendrix.

The high court’s generational divide was on display Wednesday as the justices heard arguments about whether Congress acted properly in extending U.S. copyright protection to millions of works by foreign artists and authors that had been in the public domain — meaning they could be performed and used in other ways without paying royalties.