Germany backs Ireland in Brexit border row