Striking machinists voted to approve an agreement that will hike wages by 38%. The deal was endorsed by union leaders, who warned that Boeing’s next offer might be worse.