French president's new anti-terrorism law boosts police powers and tests limits of EU rules on internal borders.