to be expected to; it has been decided~
Expresses that something has been decided, arranged, or is understood as a rule or expectation.
This pattern means 'it has been decided that ~' or 'it is expected that ~'. It states a rule, a social convention, a schedule, or an arrangement that someone else has made, and the speaker is just reporting it. The nuance is that the decision is not yours to change, or it is general knowledge.
Use the plain present form for things that are currently true or will happen, and the past form for things that were decided or expected in the past. When the main clause is in the past (e.g., ことになっていた), it often means 'was supposed to' but didn't happen.
Note: Do not confuse with ことにする, which means 'to decide oneself'. ことになっている is for decisions made by others or by society.