The court ruling came the same day the artist and his partner, Rihanna, publicly announced they’re expecting their third child together