Legislation may help avoid a messy Libor transition. Here’s one option policymakers should consider.