A Leeds takeaway has kept its licence to operate after agreeing to measures to prevent illegal workers being employed.