A Bedfordshire metal company has been fined for safety breaches after a worker suffered severe leg injuries and lost most of his foot.