If the Federal Government can impose a contract they could have imposed one that forced the railroads to give the unions the sick time they wanted. Biden and his handlers chose not to do that.
The unions may be powerful, but the folks running the companies and their board of directors have a lot of money and a lot of friends.