General relativity with a topological phase: An Action principle