A court in Bosnia and Herzegovina ruled Monday that the banking agency of the autonomous Republika Srpska had acted illegally by withholding records on a failed local bank from the anti-corruption group Transparency International (TI), the organization said.