Companion points and local-global compatibility for GL2