Biden signs bill to avert rail strike