A teenager and his stepfather have both been sentenced for their roles in two terrifying attacks on a family home in Halifax.