An Omagh to Enniskillen railway line has been derailed because it would have cost £335m.