A Drone Flew Within 200 Feet Of A Commercial Jet. How Legal Was It? [Updated]

An airline pilot spotted an unmanned flying object dangerously close to his plane in Brooklyn yesterday. What can we learn from this?