Welsh Assembly debates value of historic religious buildings