Major public galleries and libraries acquire hundreds of works a year, but they are infrequent players in the saleroom. Here’s what they have bought.