Spatially regulated ubiquitin ligation by an ER/nuclear membrane ligase