thus by fate and courage they passed over the shadowy mountains , and coming down into the vale of sirion they passed into the forest of brethil ; and at last , weary and haggard , they reached the confines of doriath .