A plan to replace “unviable” chicken sheds on a Herefordshire farm with nine houses has been given the go-ahead.