Approximate Gradient Coding with Optimal Decoding