Explanation
Express doing something until a certain time or condition; 'until', 'to'.
Formation
Time/Noun + まで + Verb(て-form)
Detailed explanation
The ~まで~て grammar point is used to show that an action continues until a certain time or condition. In your examples, a time expression (such as 9時) is followed by まで, then the action in the て-form. It can be translated as 'until' or 'up to the point when/where'.
Examples
Ku-ji made hataraite, sono ato kyuukei shimashita.
I worked until 9 o'clock, and then took a break.
Yoru made benkyou shite, shiken ni goukaku shimashita.
I studied until night, and passed the exam.
Saigo no peeji made yonde, hon o tojimashita.
I read until the last page, then closed the book.
Densha ga tsuku made matte, tomodachi to aimashita.
I waited until the train arrived, and then met my friend.
Practice
Grammar content sourced from hanabira.org.