Biden signs bill averting nationwide rail strike