A federal judge Friday handed a significant legal victory to the state, the town of Aquinnah and a homeowners group in a decision rejecting assertions by the Wampanoag tribe that it has the right to open a gambling hall at the western tip of the Island.