What ruler opposed the British use of permits and ended up at war