'〜ということ': Broad Nominalization ('The Fact / Idea That...')
[Sentence / Clause] + ということ (Encapsulating an entire concept into a noun clause)
'〜ということ' converts an entire sentence, complex factual proposition, or quote into a clean nominal unit that can then function as the grammatical subject or object of a sentence ('the fact that...', 'the idea that...').
⚠ Note: Sentence-final use: At the end of a sentence, '〜ということだ' functions as formal hearsay or logical definition.
彼が来月結婚するということを、昨日初めて知った。
I only learned yesterday about the fact that he is getting married next month.
この赤いランプがつくのは、機械が故障だということです。
This red lamp lighting up means that the machinery is experiencing a malfunction.