The Norwegian government has stepped in to stop strikes that threatened to suspend UK gas deliveries.