Firms that flout the law by failing to ensure their workplaces are safe for workers will be subject to additional costs from next month.