Court ruling could deny burial rights to unrecognised religious and belief groups