Boris Johnson's Partygate legal fees cost the taxpayer more than $340,000, according to Government figures slipped out before the summer recess.