Peers have backed a proposed law that aims to help prevent and reduce the harm of terror attacks at event venues, such as nightclubs, concert halls and churches.