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