All corporations which have been heretofore or may hereafter be formed under the laws of New Mexico for the purpose of supplying water for domestic, irrigating or manufacturing purposes, for cities or towns, with a population of three thousand persons or more, shall have all the powers and shall be entitled to all the rights and privileges so far as they may be necessary for the transaction of the business of any and all such corporations as are conferred on railroad companies.