A State Treaty signed in 1955 ended the occupation , recognized Austria 's independence , and forbade unification with Germany .