Court rules in favor of 'endangering' minors