The government is taking the extraordinary step after watching daily cases rise from five in late May to more than 4,000 this week.