Einstein gravity from restricted coordinate invariance