A former bar and restaurant in Hamble will be converted into two homes despite fears over the impact on a nearby pub.