Whenever the legislature attempts to regulate the differences between masters [employers] and their workmen, its counselors [members of the legislature] are always the masters. When the regulation, therefore, is in favor of the workmen, it is always just and equitable; but it is sometimes otherwise when in favor of the masters.