A legal work-from-home mandate will apply to businesses big and small as a state government eyes productivity and political gains.