Original: Every ship that arrived in Dejima was inspected, and sails were seized until that ship was set to leave.
Simplified: Every ship that came to Dejima was inspected. The sails were taken off until that ship was ready to leave.