Brazil court grants Ghosn access to Rio apartment