Network Rail has signed contracts worth £200m to reinstate the Portishead railway line.