Mass-deformed Yang-Mills theory in the covariant gauge and its gauge-invariant extension through the gauge-independent BEH mechanism