The British government broke the law by allowing arms exports to Saudi Arabia that might have been used in the conflict in Yemen, a British court ruled on Thursday.