Brazil court rules in favor of Indigenous people