From what I understand there is nothing wrong with butt welding in steel to restore the factory profile of the rail as long as you grind an angle into the edges of both pieces and get full penetration on your weld for maximum strength, keep in mind with that much damage already done and the structural integrity already compromised it's unlikely that you could make it worse by repairing it if it's done properly.