The imposed settlement is federal law passed by Congress.
If Congress can create a NLRB, it can set railroad work conditions too.
The federal law ignores contract law, which is stated in the Constitution. It also violates the anti-slavery amendment.