Quantum Approximate Optimization of the Long-Range Ising Model with a Trapped-Ion Quantum Simulator