The government will now run the service after months of delays and cancellations.