Court rules in favour of mother fighting for access to newborn