The law specifically gives libraries a carveout to make one copy in some cases or three copies in others, for purposes like this. It does not give them the ability to send these copies to library customers over the internet.
That is exactly what libraries do though by giving access to fully scanned books on their website.