A universal relation between the properties of supermassive black holes, galaxies, and dark matter haloes