The UK foreign secretary was berated for being sexist in parliament by its highest authority