Ruling throws doubt on Bali convictions