UK court says terror suspect can be sent to Spain