The Devil Wears Prada actress shares two children with fellow actor John Krasinski