The government has lost its legal challenge to prevent the Covid inquiry from seeing Boris Johnson's WhatsApps, diaries, and notebooks in full.