If fuel flow is proportional to thrust and you are already flying at your best TAS/drag ratio then you will not get more range in a headwind, but less. However, you can minimize the amount you lose by flying slightly faster, as already explained.
Dick W