Exchange of three Israelis and 183 Palestinians comes as Trump casts uncertainty over second ceasefire phase.