Halting UK arms sales to Saudi Arabia would have risks, court hears