Biden signs bill to avoid US rail strike