A military squadron has been given the 'Freedom of the Town' honour.