They are dependent clauses, and belong "attached" to the main clause (the main body of the sentence) with a comma, just as you have it. Without the comma, in the first sentence, it would be the men who are waiting.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.